package com.qianyitian.hope2.analyzer.funds.model;

import com.qianyitian.hope2.analyzer.util.Utils;

public class BubblePositionStatus {
    double x;
    double y;
    double z;
    String name;

    PositionStatus positionStatus;

    public BubblePositionStatus(PositionStatus positionStatus) {
        this.positionStatus = positionStatus;
    }

    public double getX() {
        return Utils.get2Double(positionStatus.getValue()/100000000);
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return positionStatus.getNumber();
    }

    public void setY(double y) {
        this.y = y;
    }

    public double getZ() {
        return getX();
    }

    public void setZ(double z) {
        this.z = z;
    }

    public String getName() {
        return positionStatus.getName() + " " + positionStatus.getCode();
    }

    public void setName(String name) {
        this.name = name;
    }
}
